package com.xbongbong.pro.score.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.domain.entity.ScoreRangeConditionEntity;
import com.xbongbong.pro.domain.entity.ScoreRuleConditionEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 查询评分展示区间
 */
@Data
public class ScoreRangeSaveDTO extends BaseDTO {
    private static final long serialVersionUID = 3528955007420505116L;

    /**
     * appId
     */
    private Long appId;

    /**
     * menuId
     */
    private Long menuId;

    /**
     * formID
     */
    @NotNull(message = "{dto.msg.score.formId.NotNull}")
    private Long formId;

    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.score.businessType.NotNull}")
    private Integer businessType;

    /**
     * 评分展示方式
     */
    @NotNull(message = "{dto.msg.score.scoreShowType.NotNull}")
    private Integer scoreShowType;

    /**
     * 新增时 dataId 为空
     */
    private Long dataId;

    /**
     * 评分展示区间条件内容
     */
    private List<ScoreRangeConditionEntity> scoreRangeList;


}
